package com.zenithsun.sys.domain.bo;

import com.zenithsun.common.base.bo.DataEntity;

import java.io.Serializable;

/**
 * @author karlwanghn
 * 资源实体
 */
public class Resource extends DataEntity<Resource> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 资源名称
     */
    private String code;
    /**
     * 资源描述
     */
    private String name;
    /**
     * 父资源编码->菜单
     */
    private String parentId;
    /**
     * 访问地址URL'
     */
    private String uri;
    /**
     * 类型
     * 1:菜单menu 2:资源element(rest-api) 3:资源分类
     */
    private Short type;
    /**
     * 访问方式 GET POST PUT DELETE PATCH
     */
    private String method;
    /**
     * 图标
     */
    private String icon;
    /**
     * 状态   1:正常、9：禁用
     */
    private Byte status;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }
}
